#pragma once
#include <iostream>

namespace shw
{
    class level
    {
    public:
        enum class value
        {
            DEBUG = 0,
            INFO,
            WARN,
            ERROR,
            FATAL,
            OFF
        };
        static const char *ToString(shw::level::value val)
        {
            switch (val)
            {
            case shw::level::value::DEBUG:
                return "DEBUG";
            case shw::level::value::INFO:
                return "INFO";
            case shw::level::value::WARN:
                return "WARN";
            case shw::level::value::ERROR:
                return "ERROR";
            case shw::level::value::FATAL:
                return "FATAL";
            case shw::level::value::OFF:
                return "OFF";
            default:
                return "UNKNOW";
            }
        }
    };
}